package com.nf.test;

public class 笔记本电脑 implements 电脑I {

    private 打印机I printer = null;

    public 打印机I getPrinter() {
        return printer;
    }

    public void setPrinter(打印机I printer) {
        this.printer = printer;
    }

    public void 打印文本(String txt) {
        //彩色打印机 printer = new 彩色打印机();
        printer.初始化();
        printer.打印(txt);
    }

    public void 玩游戏() {
        System.out.println("显卡不行");
    }
}
